package com.zt.data;

import java.io.Serializable;
import java.util.Date;

public class TaskInstanceVo  implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1856900306386269828L;
	private long tid;
	private String tname;// 任务名称
	private String actorId; //申请人
	private Date tstart;
	private Date tend;
	private String tstatus;// 状态：取消，完成，未完成
	private String treason;
	private long tday;
	private Date tprocessInstanceStart;// 流程创建的开始时间
	private String tcurrentStep; //当前任务

	public TaskInstanceVo() {
		// TODO Auto-generated constructor stub
	}

	public TaskInstanceVo(long tid, String tname, Date tstart, Date tend,
			String tstatus, String treason, long tday,
			Date tprocessInstanceStart) {
		super();
		this.tid = tid;
		this.tname = tname;
		this.tstart = tstart;
		this.tend = tend;
		this.tstatus = tstatus;
		this.treason = treason;
		this.tday = tday;
		this.tprocessInstanceStart = tprocessInstanceStart;
	}
	
	public TaskInstanceVo(long tid, String tname, String actorId, Date tstart,
			Date tend, String tstatus, String treason, long tday,
			Date tprocessInstanceStart, String tcurrentStep) {
		super();
		this.tid = tid;
		this.tname = tname;
		this.actorId = actorId;
		this.tstart = tstart;
		this.tend = tend;
		this.tstatus = tstatus;
		this.treason = treason;
		this.tday = tday;
		this.tprocessInstanceStart = tprocessInstanceStart;
		this.tcurrentStep = tcurrentStep;
	}

	public void setActorId(String actorId) {
		this.actorId = actorId;
	}
	
	public String getActorId() {
		return actorId;
	}
	
	public String getTstatus() {
		return tstatus;
	}
	
	public void setTstatus(String tstatus) {
		this.tstatus = tstatus;
	}

	public long getTid() {
		return tid;
	}

	public void setTid(long tid) {
		this.tid = tid;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public Date getTstart() {
		return tstart;
	}

	public void setTstart(Date tstart) {
		this.tstart = tstart;
	}

	public Date getTend() {
		return tend;
	}

	public void setTend(Date tend) {
		this.tend = tend;
	}

	public String isTisFinished() {
		return tstatus;
	}

	public void setTisFinished(String tstatus) {
		this.tstatus = tstatus;
	}

	public String getTreason() {
		return treason;
	}

	public void setTreason(String treason) {
		this.treason = treason;
	}

	public long getTday() {
		return tday;
	}

	public void setTday(long tday) {
		this.tday = tday;
	}

	public Date getTprocessInstanceStart() {
		return tprocessInstanceStart;
	}

	public void setTprocessInstanceStart(Date tprocessInstanceStart) {
		this.tprocessInstanceStart = tprocessInstanceStart;
	}

	public void setTcurrentStep(String tcurrentStep) {
		this.tcurrentStep = tcurrentStep;
	}
	
	public String getTcurrentStep() {
		return tcurrentStep;
	}
	@Override
	public String toString() {
		return this.getTid() + "\t"
			+ this.getTname() + "\t"
			+ this.getTstart() + "\t"
			+ this.getTend() + "\t"
			+ this.getTreason() + "\t"
			+ this.getTday() + "\t"
			+ this.getTprocessInstanceStart() + "\t"
			+ this.getTstatus();
	}

}

